package ca.cbc.localsrvextadmin.util;

public class ExceptionUtil {
	public static String getRootCauseMessage(Exception e) {
		String msg = e.getMessage();
		Throwable t = e.getCause();
		while(t != null) {
			msg = t.getMessage();
			t = t.getCause();
		}
		return msg;
	}
}
